package com.ztp.pc.gui.gtabpane;

import javax.swing.ImageIcon;


public class Util {
	static ImageIcon getDefaultCloseIcon(boolean entered){
		if(entered){
			return new ImageIcon(GTabButton.class.getResource("/javax/swing/plaf/metal/icons/ocean/close-pressed.gif"));
		}
		return new ImageIcon(GTabButton.class.getResource("/javax/swing/plaf/metal/icons/ocean/close.gif"));
	}
	
	static ImageIcon getDefaultMinimIcon(boolean entered){
		if(entered){
			return new ImageIcon(GTabButton.class.getResource("/javax/swing/plaf/metal/icons/ocean/close-pressed.gif"));
		}
		return new ImageIcon(GTabButton.class.getResource("/javax/swing/plaf/metal/icons/ocean/close.gif"));
	}
	static ImageIcon getDefaultNewIcon(boolean entered){
		if(entered){
			return new ImageIcon("res/img/file_pressed.png");
		}
		return new ImageIcon("res/img/file.gif");
	}
}
